package com.eliza.databind

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.databind.activity.DbActivity
import com.eliza.databind.activity.IncludeActivity
import com.eliza.databind.activity.ImgAdapterActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.main_to_databind_base).setOnClickListener {
            startActivity(Intent(this, DbActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_databind_include).setOnClickListener {
            startActivity(Intent(this, IncludeActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_databind_imgAdapter).setOnClickListener {
            startActivity(Intent(this, ImgAdapterActivity::class.java))
        }

    }

}